/*
 * 移动设备识别 安卓 or IOS
 * */

let android = window.android;
let androidOrios = 'android';
const u = navigator.userAgent;
console.log(!!u.match('Windows'));
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isiOS) {
  android = window;
  androidOrios = 'ios';
} else if (u.match('Windows')) {
  androidOrios = 'windows';
}
export { android, androidOrios };
